package com.proj.bean;

import java.math.BigDecimal;

public class Cart {
    private int userid;
    private int goodsid;
    private int number;
    private BigDecimal price_when_add;
    private int selected;
    private Goods goods;

    @Override
    public String toString() {
        return "Cart{" +
                "userid=" + userid +
                ", goodsid=" + goodsid +
                ", number=" + number +
                ", price_when_add=" + price_when_add +
                ", selected=" + selected +
                ", goods=" + goods +
                '}';
    }

    public Cart(int userid, int goodsid, int number, BigDecimal price_when_add, int selected, Goods goods) {
        this.userid = userid;
        this.goodsid = goodsid;
        this.number = number;
        this.price_when_add = price_when_add;
        this.selected = selected;
        this.goods = goods;
    }
    public Cart(int userid, int goodsid, int number, BigDecimal price_when_add, int selected) {
        this.userid = userid;
        this.goodsid = goodsid;
        this.number = number;
        this.price_when_add = price_when_add;
        this.selected = selected;
    }
    public Cart(int userid, int goodsid) {
        this.userid = userid;
        this.goodsid = goodsid;
    }
    public Cart() {
    }

    public int getSelected() {
        return selected;
    }

    public void setSelected(int selected) {
        this.selected = selected;
    }

    public Goods getGoods() {
        return goods;
    }
    public void setGoods(Goods goods) {
        this.goods = goods;
    }


    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(int goodsid) {
        this.goodsid = goodsid;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public BigDecimal getPrice_when_add() {
        return price_when_add;
    }

    public void setPrice_when_add(BigDecimal price_when_add) {
        this.price_when_add = price_when_add;
    }
}
